import fileDownload from 'js-file-download'
import axios from 'axios'
import $http from '@/utils/httpRequest'
export function exportFile (url, params, filename) {
  axios.get($http.httpUrl(url), {
    params: params,
    responseType: 'blob'
  }).then(res => {
    console.log('res: ', res)
    fileDownload(res.data, filename)
  })
}
